package com.huasheng.infohub.dao;

import java.util.List;

public interface IPagination {
	/**
	 * check whether is the first page
	 * @return
	 */
	public boolean isFirst();
	
	/**
	 * check whether is the last page
	 * @return
	 */
	public boolean isLast();
	
	/**
	 * check whether has a next page
	 * @return
	 */
	public boolean hasNext();
	
	/**
	 * check whether has a previous page
	 * @return
	 */
	public boolean hasPrevious();
	public int getMaxElements();
	public int getMaxPages();
	public int getNext();
	public int getPrevious();
	public int getPageSize();
	public int getPageNumber();
	public List<?> getList();
	public void setPageSize(int pageSize);
	public void setPageNumber(int pageNumber);
}
